package com.lagou.sqlsession;

import com.lagou.pojo.Configuration;

import java.util.List;

public interface SqlSession {

    <E> List<E> selectList(String statementId, Object... params);

    <E> E selectOne(String statementId, Object... params);

    int insert(String statementId, Object... params);

    int update(String statementId, Object... params);

    int delete(String statementId, Object... params);


    <T> T getMapper(Class<T> type);

    Configuration getConfiguration();
}
